
var _global = this;

_global.include = function( /*String*/ filepath )
    {
    var FSO = new ActiveXObject( "Scripting.FileSystemObject" );
    
    if( FSO.FileExists( filepath ) )
        {
        return eval( FSO.OpenTextFile( filepath ).ReadAll() );
        }
    else
        {
        WScript.Echo( "## ERROR : \"" + filepath + "\" does not exist ##" );
        }
    }

include( "..\\release\\lib\\core2_v1.0.0_JS56.js56" );

_global.toto = {};

toto.a = {};
toto.a.b = {};
toto.a.b.c = {};
toto.a.b.c.d = {};
toto.a.b.c.d.e = {};
toto.a.b.c.d.e.f = {};
toto.a.b.c.d.e.f.g = {};
toto.a.b.c.d.e.f.g.h = {};
toto.a.b.c.d.e.f.g.h.i = {};
toto.a.b.c.d.e.f.g.h.i.j = {};

toto.b = {};
toto.b.b = {};
toto.b.b.c = {};
toto.b.b.c.d = {};
toto.b.b.c.d.e = {};
toto.b.b.c.d.e.f = {};
toto.b.b.c.d.e.f.g = {};
toto.b.b.c.d.e.f.g.h = {};
toto.b.b.c.d.e.f.g.h.i = {};
toto.b.b.c.d.e.f.g.h.i.j = {};

toto.c = {};
toto.c.b = {};
toto.c.b.c = {};
toto.c.b.c.d = {};
toto.c.b.c.d.e = {};
toto.c.b.c.d.e.f = {};
toto.c.b.c.d.e.f.g = {};
toto.c.b.c.d.e.f.g.h = {};
toto.c.b.c.d.e.f.g.h.i = {};
toto.c.b.c.d.e.f.g.h.i.j = {};

toto.d = {};
toto.d.b = {};
toto.d.b.c = {};
toto.d.b.c.d = {};
toto.d.b.c.d.e = {};
toto.d.b.c.d.e.f = {};
toto.d.b.c.d.e.f.g = {};
toto.d.b.c.d.e.f.g.h = {};
toto.d.b.c.d.e.f.g.h.i = {};
toto.d.b.c.d.e.f.g.h.i.j = {};

toto.e = {};
toto.e.b = {};
toto.e.b.c = {};
toto.e.b.c.d = {};
toto.e.b.c.d.e = {};
toto.e.b.c.d.e.f = {};
toto.e.b.c.d.e.f.g = {};
toto.e.b.c.d.e.f.g.h = {};
toto.e.b.c.d.e.f.g.h.i = {};
toto.e.b.c.d.e.f.g.h.i.j = {};

toto.f = {};
toto.f.b = {};
toto.f.b.c = {};
toto.f.b.c.d = {};
toto.f.b.c.d.e = {};
toto.f.b.c.d.e.f = {};
toto.f.b.c.d.e.f.g = {};
toto.f.b.c.d.e.f.g.h = {};
toto.f.b.c.d.e.f.g.h.i = {};
toto.f.b.c.d.e.f.g.h.i.j = {};

toto.g = {};
toto.g.b = {};
toto.g.b.c = {};
toto.g.b.c.d = {};
toto.g.b.c.d.e = {};
toto.g.b.c.d.e.f = {};
toto.g.b.c.d.e.f.g = {};
toto.g.b.c.d.e.f.g.h = {};
toto.g.b.c.d.e.f.g.h.i = {};
toto.g.b.c.d.e.f.g.h.i.j = {};
toto.g.b.c.d.e.f.g.h.i.j.k = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y = {};
toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z = {};

_global.foobar = {};
_global.atest = "";

trace( "1.----------------" );
var t = new Date().getTime();
trace( GetObjectPath( atest ) );
trace( "time: " + (new Date().getTime()-t) + "ms" );
trace( "------------------" );

trace( "2.----------------" );
var t = new Date().getTime();
trace( GetObjectPath( atest ) );
trace( "time: " + (new Date().getTime()-t) + "ms" );
trace( "------------------" );

trace( "3.----------------" );
var t = new Date().getTime();
trace( GetObjectPath( toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z ) );
trace( "time: " + (new Date().getTime()-t) + "ms" );
trace( "------------------" );

trace( "4.----------------" );
var t = new Date().getTime();
trace( GetObjectPath( toto.g.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z ) );
trace( "time: " + (new Date().getTime()-t) + "ms" );
trace( "------------------" );

/*
trace( "$GLOBAL_RESERVED:" )
trace( $GLOBAL_RESERVED.join( "\n" ) );
*/


